<?php
	include_once "danhmuc_db.php";
	
	class danhmuc_bs
	{
		//--------------Field---------------
		private $MaDanhMuc;
		public function SetMaDanhMuc($MaDanhMuc)   { $this->MaDanhMuc = $MaDanhMuc;   }
		public function GetMaDanhMuc()             { return $this->MaDanhMuc;         }
		
		private $TenDanhMuc;
		public function SetTenDanhMuc($TenDanhMuc) { $this->TenDanhMuc = $TenDanhMuc; }
		public function GetTenDanhMuc()            { return $this->TenDanhMuc;        }
		
		//--------------Method---------------
		public function Them()
		{
			$data = new danhmuc_db();
			return $data->Them($this->MaDanhMuc, $this->TenDanhMuc);
		}
		
		public function CapNhat()
		{
			$data = new danhmuc_db();
			return $data->CapNhat($this->MaDanhMuc, $this->TenDanhMuc);
		}
		
		public function Xoa()
		{
			$data = new danhmuc_db();
			return $data->Xoa($this->MaDanhMuc);
		}
		
		public function LayDanhSach()
		{
			$data = new danhmuc_db();
			return $data->LayDanhSach($this->MaDanhMuc);
		}
	}
?>